The client calls XMLHTTP in five steps:1. Create an XMLHTTP object2. Open the connection with the server, and define the command sending method, Service webpage (URL), and request permissions.The client opens a connection to the Service webpage of
Microsoft. XMLHttp component attributes1. steps:1. Create an XMLHTTP object // MSXML4.0 is required2. Open the connection with the server, and define the command sending method, Service webpage (URL), and request permissions. The client opens a
In Ajax, there is a check in the status code,
Xmlhttp.onreadystatechange=handlestatechange;
function Handlestatechange (){if (xmlhttp.readystate==4){if (xmlhttp.status==200){Parseresults (); Resolve return value}}}
What do you mean by readyState
Rest-based Web Service Design
I have previously introduced the use of Apache axis to implement soap-based Web service implementation technology and related code. In general, although the soap web service solution is more mature and secure, however,
When requesting remote files in Ajax or checking whether the remote files are out of chain, you need to know the Status feedback from the remote server to determine whether the files exist or not.Of course, when we browse webpages, we will also find
XMLHttpRequest
Provides the sameHTTPServer Communication Protocol
Dim HttpReq As New MSXML2.XMLHTTP30 HttpReq.open "GET", "http://localhost/books.xml", False HttpReq.send MsgBox HttpReq.responseText
Remarks
The client can use the XMLHTTP object
This article discusses the problems related to readyState and status in Ajax, ajaxreadystate.
Let's take a look at the following code, and then introduce in detail the readyState and status issues in Ajax. The details are as follows:
Var
(1) status code supported by HTTP 1.1
100 the initial request for continue has been accepted, and the customer shall continue to send the rest of the request
101 The switching protocols server converts a client-compliant request to another
1, IE5, 6 Use ActiveX (window. ActiveXObject)Version: msxml2.xmlhttp.6.0 msxml2.xmlhttp.3.02, other major browsers: built-in constructors (window. XMLHttpRequest) Create objects for all browsers function createxmlhttprequest (){if (window.
In. net, there are many solutions to achieve no refreshing paging. The example I wrote mainly uses the Ajax principle to implement a non-refreshing paging (in fact, I don't think this solution fully uses Ajax technology ).
Here we will use stored
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.